import { ApiProperty } from '@nestjs/swagger'
import { IsString, IsNotEmpty, IsNumber, IsOptional } from 'class-validator'

export class UpdateRoleDto {
  @ApiProperty({ description: '角色名称(英文)' })
  @IsOptional()
  @IsString()
  @IsNotEmpty()
  readonly name?: string

  @ApiProperty({ description: '角色标题' })
  @IsOptional()
  @IsString()
  @IsNotEmpty()
  readonly title?: string

  @ApiProperty({ default: 1, description: '状态（是否启用）' })
  @IsOptional()
  @IsNumber()
  readonly status?: number
}
